package com.zhanggm.student.controller;


import com.zhanggm.student.config.ResponseResult;
import com.zhanggm.student.service.IHobbyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 爱好表 前端控制器
 * </p>
 *
 * @author zhanggm
 * @since 2020-10-21
 */
@RestController
@RequestMapping("/hobby")
public class HobbyController {

    @Autowired
    private IHobbyService iHobbyService;

    @GetMapping("getAllHobbyList")
    public ResponseResult getAllHobbyList(){
        return ResponseResult.success(iHobbyService.list());
    }

}
